<div>
    <?php if (!isset($this->erros)): ?>
        <form id="<?= $this->form->getId() ?>" action="<?= $this->form->getAction() ?>" method="post">
            <? foreach ($this->form as $element): ?>
                <?= $element ?>
            <? endforeach ?>

            <?= $this->tableAgenda ?>    
            <input  type="submit" id="btnEnviar" value="Salvar" class="btn btn-large"/>
        </form>
    <?php else: ?>
        <a href="<?= $this->url(array('controller' => 'consulta', 'action' => 'index')) ?>"> Voltar</a>
    <?php endif; ?>
</div>
